<template>
  <div>
    <TabalList :list-loading="listLoading" />
  </div>
</template>

<script>
import TabalList from '@/components/table/index'
import { getpartner } from '@/api/table'

export default {
  name: 'Weapon',
  components: {
    TabalList
  },

  data() {
    return {
      list: null,
      listLoading: true
    }
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      this.$store.commit('SET_LIST', [])
      this.listLoading = true
      getpartner().then(response => {
        this.list = response.data.items
        this.$store.commit('SET_LIST', this.list)
        this.$store.commit('SET_LIST_NUMBER', 3)
        this.listLoading = false
      })
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
